package com.hy.z.exception;

import com.hy.z.result.ReInter;

/**
 * @Description: 全局异常处理
 * @author: Fhy
 * @Version: 1.0
 * @CreatedDate: 2020/4/11 19:42
 * @return
 **/

public class GlobalException extends Exception{

    private final ReInter reInter;

    //统一异常处理.
    public GlobalException(ReInter reInter){
        super(reInter.msg());
        this.reInter = reInter;
    }

    public ReInter getReInter() {
        return reInter;
    }



}
